/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.zbxsoft.portal.enums  
 */
package com.apache.bid.common;

import com.apache.tools.StrUtil;

/**
 * description:  信息发布枚举
 * @author Hou Dayu 创建时间：2015-8-29  
 * 
 */
public enum BidModeEnum {

	JTZX("1"), JTFX("2"), YCXASC("3"), YCXDESC("4"), HELAN("7"), FEJJFX("6"), FEJJZX("5");

	private String name;

	private BidModeEnum(String name) {
		this.name = name;
	}

	// 普通方法  
	public static BidModeEnum getName(String name) {
		if (StrUtil.isNull(name))
			return JTZX;
		for (BidModeEnum c : BidModeEnum.values()) {
			if (c.getName().equals(name)) {
				return c;
			}
		}
		return JTZX;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
